#include <iostream>
using namespace std;

class RMB{
    public:
        RMB(int _yuan, int _jiao, int _fen){
            yuan=_yuan;
            jiao=_jiao;
            fen=_fen;
        }
        RMB operator + (const RMB & rmb){
            RMB rmbRES(0,0,0);
            int f=rmb.fen+fen;
            int f_=f/10;
            rmbRES.fen=f%10;
            int j=rmb.jiao+jiao+f_;
            int j_=j/10;
            rmbRES.jiao=j%10;
            int y=rmb.yuan+yuan+j_;
            int y_=y/10;
            rmbRES.yuan=y%10;
            return rmbRES;
        }
        int yuan;
        int jiao;
        int fen;
};

int main(){
    RMB rmb1(1,9,0);
    RMB rmb2(2,5,0);
    RMB rmb3=rmb1+rmb2;
    cout<<rmb3.yuan<<rmb3.jiao<<rmb3.fen<<endl;
    return 0;
}
